package com.tuoren.forward.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;
import java.util.List;

import lombok.Data;

@Data
@Schema(description = "用户")
public class User {
    @Schema(description = "ID")
    private String id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "电话")
    private String mobile;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "盐")
    private String salt;

    @Schema(description = "使能 '0' 无效 '1' 有效")
    private String enabled;

    @Schema(description = "创建时间")
    private Date createtime;

    @Schema(description = "最近登陆时间")
    private Date lasttime;
    
    @Schema(description = "编码")
    private String code;

    @Schema(description = "地区编码")
    private String regionCode;

    @Schema(description = "详细地址")
    private String address;
    
    @Schema(description="角色ID, 'roleId1,roleId2'")
    private List<String> roleIds;
}